package com.company.project.mapper;

import com.company.project.entity.VaccinationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ${comments}
 *
 * @author liuhui
 * @email *****@mail.com
 * @date 2021-03-25 23:06:48
 */
public interface VaccinationMapper extends BaseMapper<VaccinationEntity> {

    @Select(" select e.mc xzq,e2.mc xzc,v.* from Vaccination v left join e_xzqh e on v.xzqh||'000' = e.dm left join e_xzqh e2 on v.township = e2.dm   where identity = #{identity, jdbcType=VARCHAR}  order by create_time desc ")
    List<VaccinationEntity> pinfobyiddcard(@Param("identity")String identity);
}
